package com.cookor.poi.modules.phy.service;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.common.persistence.Page;
import com.cookor.poi.common.service.CrudService;
import com.cookor.poi.modules.phy.dao.TPatientDao;
import com.cookor.poi.modules.phy.entity.TPatient;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TPatientService extends CrudService<TPatientDao, TPatient> {
  public TPatient get(String id) {
    return (TPatient)super.get(id);
  }
  
  public List<TPatient> findList(TPatient tPatient) {
    return super.findList( tPatient);
  }
  
  public Page<TPatient> findPage(Page<TPatient> page, TPatient tPatient) {
    return super.findPage(page,  tPatient);
  }
  
  @Transactional(readOnly = false)
  public void save(TPatient tPatient) {
    super.save( tPatient);
  }
  
  @Transactional(readOnly = false)
  public void delete(TPatient tPatient) {
    super.delete( tPatient);
  }
}
